print(hash({}))

#print(hash([]))

# print(hash(1))
# print(hash(3.14))
# print(hash('hello'))
# print(hash(True))
# print(hash(()))  #()是一个空的元组

# student = {
#     'id' : 12138 ,
#     'name' : '张三'
# }
#
# print(student.items())  #dict_items([('id', 12138), ('name', '张三')])

#print(student.keys()) #dict_keys(['id', 'name'])

#print(student.values()) #dict_values([12138, '张三'])

# for i in student:
#     print(i, student[i])

# student.pop('id')
# print(student) #{'name': '张三'}

# student['id'] = 12345
# print(student) #{'id': 12345, 'name': '张三'}

# student['age'] = 16
# print(student)

#print(student['age'])

# print(student['id']) #12138
# print(student['name']) #张三

#print(student)

# student = {
#     'id' : 12138 ,
#     'name' : '张三'
# }
#
# print('id' in student) #True
# print('age' in student) #False
#
# print('id' not in student) #False
# print('age' not in student) #True

#print(student)

# a = {} #方式一
# b = dict() #方式二
#
# print(type(a)) #<class 'dict'>
# print(type(b)) #<class 'dict'>
